import Matrix from './Matrix';

interface IDraw{
  doPaint(matrix:Matrix):void;
}

class WindowsPainter implements IDraw{
  doPaint(matrix:Matrix){
    console.log(`在Windows中绘制${matrix.format}图像，长度：${matrix.length}`);
  }
}

class LinuxPainter implements IDraw{
  doPaint(matrix:Matrix){
    console.log(`在Linux中绘制${matrix.format}图像，长度：${matrix.length}`);
  }
}

class UnixPainter implements IDraw{
  doPaint(matrix:Matrix){
    console.log(`在Unix中绘制${matrix.format}图像，长度：${matrix.length}`);
  }
}

export {IDraw};
export {WindowsPainter, LinuxPainter, UnixPainter};